#ifndef BORRINFORMATION_H
#define BORRINFORMATION_H

#include <QWidget>
#include"book.h"
#include"student.h"
#include"borrowing.h"
#include"filewriteandread.h"
#include"bor_add_dialog.h"
#include"QMap"
#include"bor_mod_dialog.h"
#define BORROWING 6
namespace Ui {
class borrInformation;
}

class borrInformation : public QWidget
{
    Q_OBJECT

public:
    explicit borrInformation(QWidget *parent = nullptr);
    ~borrInformation();
    QMap<QString,Book> book;
    QMap<QString,Student> student;
    QMap<QString,Borrowing> borrowing;
    void printfTable();
    void closeEvent(QCloseEvent *event);
private slots:
    void on_pushButton_add_clicked();
    void send_stu_number(const QString& stu);
    void send_book_number(const QString& bok);
    void on_pushButton_mod_clicked();

    void on_pushButton_close_clicked();

    void on_pushButton_save_clicked();

    void on_pushButton_delet_clicked();
signals:
    void is_close();
private:
    Ui::borrInformation *ui;
    bor_add_Dialog* add_dialog;
    bor_mod_dialog* mod_dialog;
};

#endif // BORRINFORMATION_H
